<?php

namespace app;

use app\events\SendEmail;
use Symfony\Component\EventDispatcher\EventDispatcher;

/**
 * Created by PhpStorm
 * USER:  Zhaoys
 * Date:  2024/9/12
 */
require __DIR__.'/../vendor/autoload.php';
require __DIR__.'/events/SendEmail.php';
$eventdispatcher = new EventDispatcher();
//$eventdispatcher->addListener('send',new SendEmail());
$eventdispatcher->dispatch(new SendEmail());